<template>
  <el-tooltip :content="tooltip">
    <el-button circle
               :size="size"
               :icon="icon"
               :type="type"
               @click="e=>$emit('click',e)"/>
  </el-tooltip>
</template>

<script lang="ts">
import {defineComponent} from 'vue'

export default defineComponent({
  name: 'TOperation',
  props: {
    tooltip: String,
    icon: String,
    type: {
      type: String,
      default: 'primary'
    },
    size: {
      type: String,
      default: 'mini'
    }
  }
})
</script>

<style scoped>

</style>
